<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<%
            request.setAttribute("nombrePagina", "Nuevo IGV");
%>

<f:view>

    <%@include file="/WEB-INF/jspf/cabeceraSeguridad.jspf" %>

    <h:messages styleClass="messages_content"
                layout="table"
                errorClass="errorClass"
                warnClass="warnClass"
                infoClass="infoClass" />

    <h:form id="frmNuevoIGV">
        <h1>Nuevo IGV</h1>

        <h:panelGrid columns="2" columnClasses="label,input">
            <h:outputLabel for="txtValor" value="Valor:"/>
            <rich:inputNumberSpinner value="#{IGVController.igv.valor}" maxValue="100" minValue="0" step="0.5"/>

            <h:panelGroup/>
            <h:outputText value="El valor representa el IGV expresado en porcentaje \"%\"" styleClass="nota"/>

            <h:panelGroup/>
            <br/>

            <h:panelGroup/>
            <h:panelGroup>
                <h:commandLink id="btnCancelar"
                               accesskey="C"
                               value="Cancelar"
                               styleClass="btn"
                               action="#{IGVController.volver}" />
                <h:commandLink id="btnGuardar"
                               accesskey="G"
                               value="Guardar"
                               styleClass="btn"
                               action="#{IGVController.crear}" />
            </h:panelGroup>
        </h:panelGrid>

    </h:form>

    <%@include  file="/WEB-INF/jspf/pie.jspf" %>

</f:view>


